#include<Python.h>

static PyObject *helloworld(PyObject *self, PyObject *args)
{
	printf("Hello World\n");
	return Py_None;
}

static PyMethodDef myMethods[] = {
	{"helloworld", helloworld, METH_NOARGS, "Prints Hello World"},
	{NULL, NULL, 0, NULL}
};

static struct PyModuleDef MyModule = {
	PyModuleDef_HEAD_INIT,
	"MyModule",
	"Test Module",
	-1,
	myMethods
};

PyMODINIT_FUNC PyInit_MyModule(void)
{
	return PyModule_Create(&MyModule);
}
